Pixeldev\SquareWooSync\REST\SquareController C

Total Complexity 123
Dependencies 8
Dependents 3
Total lines 1,091
Lines of code 697
Logical lines of code 389
Comment lines 205
Methods 19
Properties 2

Methods 19

Method Rating Maintainability Complexity Lines of code
compare_skus()
C
35 27 82
search_inventory()
B
33 17 96
import_to_woocommerce()
B
33 16 96
get_square_inventory()
A
40 11 57
prepareProductsMinimal()
A
49 7 31
update_square_inventory_function()
S
46 6 40
save_inventory_to_db()
S
49 5 32
stop_import()
S
50 5 29
get_square_categories()
S
51 5 27
reenable_webhook()
S
53 5 22
register_routes()
S
44 3 50
get_saved_inventory()
S
50 4 26
get_import_status()
S
60 3 13
clear_inventory_table()
S
57 2 17
reset_is_fetching_failsafe()
S
64 3 10
get_woocommerce_products_by_sku()
S
55 1 26
get_woocommerce_products_square()
S
57 1 20
get_woocommerce_products()
S
63 1 12
abortImport()
S
62 1 11